// JavaScript Document
        function sendRequest(objeto,id, ident) {
            var oForm = document.forms[0];
			if(oForm!=null)
            	var sBody = getRequestBody(oForm);
			if(ident!=null)
				var sSingle = getRequestSingle(ident);
        
            var oXmlHttp = zXmlHttp.createRequest();
            oXmlHttp.open("post", objeto, true);
            oXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
            
            oXmlHttp.onreadystatechange = function () {
                if (oXmlHttp.readyState == 4) {
                    if (oXmlHttp.status == 200) {
                        saveResult(oXmlHttp,id);
                    } else {
                        saveResult("An error occurred: " + oXmlHttp.statusText);
                    }
                }            
            };
			if(oForm!=null)
            	oXmlHttp.send(sBody);
			else
				if(ident!=null)
					oXmlHttp.send(sSingle);
				else
				   oXmlHttp.send(null);
        }
        
        function getRequestBody(oForm) {
            var aParams = new Array();
            
            for (var i=0 ; i < oForm.elements.length; i++) {
                var sParam = encodeURIComponent(oForm.elements[i].name);
                sParam += "=";
                sParam += encodeURIComponent(oForm.elements[i].value);
                aParams.push(sParam);
            } 
            
            return aParams.join("&");        
        }
		
		function getRequestSingle(sSingle) {
            var aParams = new Array();
			var sParam = encodeURIComponent("id");
			sParam += "=";
			sParam += encodeURIComponent(sSingle);
			aParams.push(sParam);        
            return aParams.join("&");        
        }
        
        
        function saveResult(objeto,id) {
			if(objeto.responseText.indexOf(".php")!=-1)
				sendRequest(objeto.responseText,"article1");
			document.getElementById(id).innerHTML=objeto.responseText;
        }